package com.anjho.dao;

import java.io.Serializable;
import java.util.List;

import com.anjho.pojo.Genre;

public class DAOGenre extends DAOGeneric implements Serializable {
	
	private static final long serialVersionUID = 3068785072737688771L;

	public DAOGenre() {
		super();
	}

	@SuppressWarnings("unchecked")
	public List<Genre> getGenreList() throws Exception {
		return (List<Genre>)super.getList("Genre.getGenreList");
	}
	
	public Genre getGenreByGecode(int gecode) throws Exception{
		return (Genre)super.getObjectByParameter(new String[] {"gecode"}, new Object[]{gecode}, "Genre.getGenreByGecode");
		//return (Genre)super.getObjectById(gecode, "Genre.getGenreByGecode", "gecode");
	}
}
